package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.system.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LT
 * @create 2024-03-14-11:52
 */
@Mapper
public interface SysMenuMapper {

    List<SysMenu> selectAll();

    List<SysMenu> selectChildById(Long id);

    void DeleteMenusById(Long id);

    void saveMenu(@Param("sysMenu") SysMenu sysMenu);

    SysMenu FindMenuById(Long id);

    Long selectCountByTitle(SysMenu sysMenu);

    void UpdateMenu(SysMenu sysMenu);

    List<Long> selectByRoleId(Long id);

    List<SysMenu> getMenus(Long userid);

}
